package cn.rengy.web.framework.shiro.token;

import org.apache.shiro.authc.HostAuthenticationToken;

import lombok.Data;
@Data

public class PhonePasswordToken implements HostAuthenticationToken {
	
	private static final long serialVersionUID = -613703425500431153L;

	
	private String phoneNumber;

    private String password;
    
    private String host;
    private String clientId;
	@Override
	public String getPrincipal() {
		return phoneNumber;
	}

	@Override
	public String getCredentials() {
		return password;
	}

	@Override
	public String getHost() {
		return host;
	}

	public PhonePasswordToken(String phoneNumber, String password,String clientId) {
		super();
		this.phoneNumber = phoneNumber;
		this.password = password;
		this.clientId=clientId;
	}
    
	
    
}
